//
//  KZCoreNoBoarderBtn.m
//  zhuyuanbao
//
//  Created by Jason T on 15/10/21.
//  Copyright © 2015年 KangZhi. All rights reserved.
//

#import "KZCoreNoBoarderBtn.h"

@implementation KZCoreNoBoarderBtn

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    [self setAttibute];
}



- (instancetype)initWithFrame:(CGRect)frame

{
    if (self = [super initWithFrame:CGRectMake(frame.origin.x, frame.origin.y, KZCoreBtnW, KZCoreBtnH)]) {
        [self setAttibute];
    }
    return self;
}

- (void)setFrame:(CGRect)frame
{
    //子类中必须关闭autoLayoutSubview.
    [super setFrame:CGRectMake(frame.origin.x, frame.origin.y,KZCoreBtnW,KZCoreBtnH)];
}

- (void)setAttibute
{
    self.layer.cornerRadius = self.width*0.05f;

    self.layer.masksToBounds = YES;
}


@end
